<?php
	require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
	MYTCONN(); 

	//Defaults
	if (!isset($OBJCTPO) || $OBJCTPO == 0) {
		$OBJCTPO = null;
		$CORR = 0;
	}
	if (!isset($_POST['OFAC_mode'])) { $_POST['OFAC_mode'] = 1; }
   if (isset($Msg_ERROR)) { 
		  echo '<DIV class="Error">'.$Msg_ERROR.'</DIV>';
		} 
	form_pr('FMORDNGEN','','none','post'); 
	mn_field('hidden','ED','POOL','','','','',''); ?>
<table width="100%"  border="0" cellpadding="1" cellspacing="3" bgcolor="#F2F2F2">
            <tr>
              <td>Modo:
                <input name="radiobutton" type="radio" value="radiobutton" checked disabled>
				EXP
				<input name="radiobutton" type="radio" value="radiobutton" disabled>
				RESUMO</td>
              <td>OFAC: 
			  <?php
			  echo 'Database <input name="OFAC_mode" type="radio" value="1" checked>';  
			  echo 'File  <input name="OFAC_mode" type="radio" value="2">'; 
			  mn_field('button','ED','OfacCheck','Verificar','','','False','SUBMIT" disabled
			  	onClick="document.FMORDNGEN.action=\'Modules/FTK9D4D0/Lib/a05_pr_ofac_inv.mex\';
			  	subform(\'FMORDNGEN\',\'OFAC_rs\');'); 
			  echo '</td><td><div id="OFAC_rs"></div></td><td>';
			  mn_field('text','ED','OBJCTPO','Deposito: '.$OBJCTPO,'','12','10','INPCEN" disabled readonly="');
			  mn_field('button','ED','Generate','Depositar','','','False','" disabled 
			 	onClick="document.FMORDNGEN.action=\'Modules/FTK9D4D0/Lib/a05_op.orders.mex\';
			  	subform(\'FMORDNGEN\',\'ConsoleRS\');');
			  echo '</td><td>'; ?></td>
            </tr>
</table>
</form>